<template>
  <el-footer class="footer">
    <div class="footer-content">
      <el-link>关于我们</el-link>
      <span class="divider">|</span>
      <el-link>联系我们</el-link>
      <span class="divider">|</span>
      <el-link>帮助中心</el-link>
      <span class="divider">|</span>
      <el-link>隐私政策</el-link>
      <span class="divider">|</span>
      <el-link>使用条款</el-link>
    </div>
    <div class="footer-note">© 2024 学知网. 保留所有权利.</div>
  </el-footer>
</template>

<script setup lang="ts">
import { ref, onMounted } from 'vue';
import { ElFooter, ElLink } from 'element-plus';
</script>

<style scoped>
.footer {
  height: auto; /* Make height auto to fit content */
  background-color: #282c34; /* Darker background for better contrast */
  color: #cccccc; /* Lighter text color */
  padding: 20px 0;
  text-align: center; /* Center text */
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.divider {
  margin: 0 8px;
}

.footer-note {
  margin-top: 10px; 
  font-size: 0.9em; 
  color: #999; 
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
  }

  .divider {
    display: none; 
  }

  .footer-note {
    margin-top: 5px;
  }
}
</style>
